package com.yangst.service.feign.service;

import com.yangst.service.feign.service.fallback.HelloFeignServiceHystric;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 添加熔断支持
 * Created by YST on 2018/4/17.
 */
@FeignClient(value="CLOUD-SERVICE-USER",fallback = HelloFeignServiceHystric.class)
public interface HelloFeignService {

    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    String hiService(@RequestParam(value = "name") String name);
}
